<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Uber.Core.IPageable<Uber.Core.Model.PayRequest>>" %>
<%@ Import Namespace="Uber.WebUI" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Payment Requests History</h2>
    <table>
        <thead>
            <tr>
                <td>
                    Date, time requested
                </td>
                <td>
                    Amount
                </td>
                <td>
                    Status
                </td>
            </tr>
        </thead>
        <%foreach (var item in Model.Page)
          {%>
        <tr>
            <td>
                <%=item.Timp.ToString("dd MMMM yyy hh:mm:ss") %>
            </td>
            <td>
                <%=item.Amount%>
            </td>
            <td>
                <%=item.Filled ? "complete" : "in process" %>
            </td>
        </tr>
        <%
            }%>
    </table>
    <br />
    <%=Html.Pagination() %>    
</asp:Content>
